projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
231ce25
)
*** empty log message ***
author
Fred Pierresteguy
<F.Pierresteguy@frcl.bull.fr>
Fri, 18 Feb 1994 22:38:14 +0000
(22:38 +0000)
committer
Fred Pierresteguy
<F.Pierresteguy@frcl.bull.fr>
Fri, 18 Feb 1994 22:38:14 +0000
(22:38 +0000)
lwlib/lwlib.c
patch
|
blob
|
history
diff --git
a/lwlib/lwlib.c
b/lwlib/lwlib.c
index c2f2f05cba5c92e54215d6ab65d1043ee0f64131..1f858cbea3dcaa7ed18be9be317091110b6d9763 100644
(file)
--- a/
lwlib/lwlib.c
+++ b/
lwlib/lwlib.c
@@
-113,7
+113,6
@@
safe_free_str (s)
static widget_value *widget_value_free_list = 0;
static int malloc_cpt = 0;
-static int malloc_cpt_id = 0;
widget_value *
malloc_widget_value ()
@@
-144,17
+143,12
@@
free_widget_value (wv)
if (wv->free_list)
abort ();
- if (malloc_cpt > 2
0
)
+ if (malloc_cpt > 2
5
)
{
/* When the number of already allocated cells is too big,
We free it. */
- malloc_cpt_id++;
free (wv);
- if (malloc_cpt_id > 20)
- {
- malloc_cpt_id = 0;
- malloc_cpt = 0;
- }
+ malloc_cpt--;
}
else
{